package com.blb.exam.student.service.impl;

import com.blb.exam.common.entity.QuetionSet;
import com.blb.exam.student.dao.QuetionSetDAO;
import com.blb.exam.student.service.QuetionSetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class QuetionSetServiceImpl implements QuetionSetService {

    @Autowired
    private QuetionSetDAO quetionSetDAO;


    @Override
    public List<QuetionSet> findAll() {
        return quetionSetDAO.selectAll();
    }

    @Override
    public QuetionSet findById(Integer id) {
        return quetionSetDAO.selectById(id);
    }
}
